package com.gec.wiki.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gec.wiki.pojo.Doc;
import com.gec.wiki.pojo.req.DocQueryReq;
import com.gec.wiki.pojo.resp.DocQueryResp;
import com.gec.wiki.pojo.resp.PageResp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DocService extends IService<Doc> {

    PageResp<DocQueryReq> getDocListByPage(DocQueryReq req);

    List<DocQueryResp> allList(Long ebookId);

    int increaseViewCount(int id);

    int increaseVoteCount(@Param("id") int id);

    int updateEbookInfo();
}
